#include "knl_acceptor.h"

namespace knl
{

	knl_acceptor::~knl_acceptor(void)
	{

	}

	knl_acceptor::knl_acceptor()
	{

	}

	void knl_acceptor::listen( knlIoService& _io,int _port )
	{
		m_accept.reset(new boost::asio::ip::tcp::acceptor(_io,  
			boost::asio::ip::tcp::endpoint(boost::asio::ip::tcp::v4(), _port)));
		m_accept->listen();
	}

}